﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;

public class PayUitl {

	public static MessageJson GetOrderJson( string goodsId,string playerId,string agentId){
		MessageJson msg = new MessageJson();
		msg.goodsId = goodsId;
		msg.playerId = playerId;
		msg.agentId = agentId;
		return msg;
	}

	public static OrderDetailJson OrderDetailJson( string orderId){
		OrderDetailJson msg = new OrderDetailJson();
		msg.orderId = orderId;
		return msg;
	}

	public static WWW SengVisit(string url,string jsonStr){
		Dictionary<string,string> dic = new Dictionary<string, string> ();
		dic["Content-Type"] = "application/json";
		WWW www = new WWW (url,System.Text.Encoding.UTF8.GetBytes(jsonStr),dic);
		return www;
	}
}
